import request from '@/utils/request';

// 获取数据
export function getAnalysisChart(data) {
  return request({
    url: '/energyApp/dataAnalysis/getAnalysisChart',
    method: 'post',
    data: data,
    timeout: 20000
  });
}
// 查询企业分类、煤种数据
export function queryDictData(query) {
  return request({
    url: `/system/dict/data/getTypes`,
    requestBase: 'VUE_APP_BASE_YB_API',
    method: 'get',
    params: query
  });
}
// 企业数据源
export function getPurDatas(type) {
  return request({
    url: `/system/customer/simpleList/${type}`,
    method: 'get'
  });
}
// 煤矿企业数据源
export function getCoalDatas(type) {
  return request({
    url: `/business/corp/simpleList/${type}`,
    method: 'get'
  });
}
// 销售统计单能源局煤种下拉
export function listCoalInfo(query) {
  return request({
    url: '/business/coalinfo/list?refCorpId=-1',
    method: 'get',
    params: query
  });
}
